package ${package}.core.model;

<#if relation.children?exists && relation.children?size != 0>
import java.util.ArrayList;
import java.util.List;
</#if>
import java.util.Date;
import java.math.BigDecimal;

import org.openbpm.base.core.model.BaseModel;


/**
 * ${relation.tableComment} 实体<br/>
 * @author ${author}
 * @email ${email}
 * @time ${currentDate}
 */
public class ${relation.upperFirstTableKey} extends BaseModel{
	<#list relation.table.columns as column>
	<#assign colName = column.key>
	<#if colName!="id"&&colName!="createTime"&&colName!="createBy"&&colName!="updateTime"&&colName!="updateBy"&&colName!="version">
	/**
	* ${column.comment}
	*/
	protected ${genCodeUtil.getColumnJavaType(column)} ${colName};
	</#if>
	</#list>

	<#if relation.children?exists && relation.children?size!=0>
	<#list relation.children as child>
	/**
	*${child.tableComment}列表
	*/
	protected ${genCodeUtil.getChildClassName(child)} ${genCodeUtil.getLowFirstChildClassKey(child,true)};
	</#list>
	</#if>
<#list relation.table.columns as column>
	<#assign colName = column.key>
	<#assign upperFirstColName = genCodeUtil.upperFirst(column.key)>

	<#if colName!="id"&&colName!="createTime"&&colName!="createBy"&&colName!="updateTime"&&colName!="updateBy"&&colName!="version">
	/**
	 * 设值 ${column.comment}
	 */
	public void set${upperFirstColName}( ${genCodeUtil.getColumnJavaType(column)} ${colName}) {
		this.${colName} = ${colName};
	}

	/**
	 * 返回 ${column.comment}
	 * @return
	 */
	public ${genCodeUtil.getColumnJavaType(column)} get${upperFirstColName}() {
		return this.${colName};
	}
	</#if>
</#list>

<#if relation.children?exists && relation.children?size!=0>
<#list relation.children as child>

	public void set${genCodeUtil.getUpperFirstChildClassKey(child)}(${genCodeUtil.getChildClassName(child)} ${genCodeUtil.getLowFirstChildClassKey(child,false)}) {
		this.${genCodeUtil.getLowFirstChildClassKey(child,false)} = ${genCodeUtil.getLowFirstChildClassKey(child,false)};
	}

	/**
	 * 返回 ${child.tableComment}
	 * @return
	 */
	public ${genCodeUtil.getChildClassName(child)} get${genCodeUtil.getUpperFirstChildClassKey(child)}() {
		return this.${genCodeUtil.getLowFirstChildClassKey(child,false)};
	}
</#list>
</#if>

}
